package status;

import lombok.Getter;

/**
 * 状态码实体
 */

@Getter
public enum  CodeEnum implements EnumStatus {

    OK(20000,"成功"),
    ERROR(20001,"失败"),
    LOGIN_ERROR(20002,"用户性或者密码错误"),
    ACCESS_ERROR(20003,"权限不足"),
    REMOTEE_ERROR(20004,"远程调用失败"),
    REPE_ERROR(20005,"重复操作"),

    ;

    private Integer code;//代码

    private String message;//消息


     private CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }



}
